package com.knife.hospital.mapper;

import com.knife.hospital.entity.OrderPO;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface OrderPOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderPO record);

    int insertSelective(OrderPO record);

    OrderPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderPO record);

    int updateByPrimaryKey(OrderPO record);

    List<OrderPO> getUserOrdersByPatientId(@Param("id") Integer id);

    List<OrderPO> getOrderByDate(@Param("id") Integer id, @Param("date") Date date);

    List<OrderPO> getDoctorOrdersByDoctorID(@Param("id") Integer id);

}
